#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class StaffInfo : Business.BusinessBase<StaffInfo, int>
	{
		#region Fields and Properties

		private String positon = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Positon
		{
			get { return positon; }
			set
			{
				if (value != positon)
				{
					MarkChanged("Positon");
					positon = value;
				}
			}
		}

		private String attachmentCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String AttachmentCode
		{
			get { return attachmentCode; }
			set
			{
				if (value != attachmentCode)
				{
					MarkChanged("AttachmentCode");
					attachmentCode = value;
				}
			}
		}

		private String des = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Des
		{
			get { return des; }
			set
			{
				if (value != des)
				{
					MarkChanged("Des");
					des = value;
				}
			}
		}

		private String departmentCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String DepartmentCode
		{
			get { return departmentCode; }
			set
			{
				if (value != departmentCode)
				{
					MarkChanged("DepartmentCode");
					departmentCode = value;
				}
			}
		}

		private String photo = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Photo
		{
			get { return photo; }
			set
			{
				if (value != photo)
				{
					MarkChanged("Photo");
					photo = value;
				}
			}
		}

		private String staffCate = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String StaffCate
		{
			get { return staffCate; }
			set
			{
				if (value != staffCate)
				{
					MarkChanged("StaffCate");
					staffCate = value;
				}
			}
		}

		private String phone = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Phone
		{
			get { return phone; }
			set
			{
				if (value != phone)
				{
					MarkChanged("Phone");
					phone = value;
				}
			}
		}

		private String cellPhone = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String CellPhone
		{
			get { return cellPhone; }
			set
			{
				if (value != cellPhone)
				{
					MarkChanged("CellPhone");
					cellPhone = value;
				}
			}
		}

		private String address = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Address
		{
			get { return address; }
			set
			{
				if (value != address)
				{
					MarkChanged("Address");
					address = value;
				}
			}
		}

		private String schoolTypeCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String SchoolTypeCode
		{
			get { return schoolTypeCode; }
			set
			{
				if (value != schoolTypeCode)
				{
					MarkChanged("SchoolTypeCode");
					schoolTypeCode = value;
				}
			}
		}

		private String professName = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ProfessName
		{
			get { return professName; }
			set
			{
				if (value != professName)
				{
					MarkChanged("ProfessName");
					professName = value;
				}
			}
		}

		private String graduteSchool = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String GraduteSchool
		{
			get { return graduteSchool; }
			set
			{
				if (value != graduteSchool)
				{
					MarkChanged("GraduteSchool");
					graduteSchool = value;
				}
			}
		}

		private String originWork = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String OriginWork
		{
			get { return originWork; }
			set
			{
				if (value != originWork)
				{
					MarkChanged("OriginWork");
					originWork = value;
				}
			}
		}

		private String teachSubject = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String TeachSubject
		{
			get { return teachSubject; }
			set
			{
				if (value != teachSubject)
				{
					MarkChanged("TeachSubject");
					teachSubject = value;
				}
			}
		}

		private String qualityLvl = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String QualityLvl
		{
			get { return qualityLvl; }
			set
			{
				if (value != qualityLvl)
				{
					MarkChanged("QualityLvl");
					qualityLvl = value;
				}
			}
		}

		private String titleLvl = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String TitleLvl
		{
			get { return titleLvl; }
			set
			{
				if (value != titleLvl)
				{
					MarkChanged("TitleLvl");
					titleLvl = value;
				}
			}
		}

		private String scholarLvl = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ScholarLvl
		{
			get { return scholarLvl; }
			set
			{
				if (value != scholarLvl)
				{
					MarkChanged("ScholarLvl");
					scholarLvl = value;
				}
			}
		}

		private String educateLvl = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String EducateLvl
		{
			get { return educateLvl; }
			set
			{
				if (value != educateLvl)
				{
					MarkChanged("EducateLvl");
					educateLvl = value;
				}
			}
		}

		private DateTime joinDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime JoinDate
		{
			get { return joinDate; }
			set
			{
				if (value != joinDate)
				{
					MarkChanged("JoinDate");
					joinDate = value;
				}
			}
		}

		private String politicalCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String PoliticalCode
		{
			get { return politicalCode; }
			set
			{
				if (value != politicalCode)
				{
					MarkChanged("PoliticalCode");
					politicalCode = value;
				}
			}
		}

		private DateTime birthday = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime Birthday
		{
			get { return birthday; }
			set
			{
				if (value != birthday)
				{
					MarkChanged("Birthday");
					birthday = value;
				}
			}
		}

		private String identifyCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String IdentifyCode
		{
			get { return identifyCode; }
			set
			{
				if (value != identifyCode)
				{
					MarkChanged("IdentifyCode");
					identifyCode = value;
				}
			}
		}

		private String origin = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Origin
		{
			get { return origin; }
			set
			{
				if (value != origin)
				{
					MarkChanged("Origin");
					origin = value;
				}
			}
		}

		private String nation = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Nation
		{
			get { return nation; }
			set
			{
				if (value != nation)
				{
					MarkChanged("Nation");
					nation = value;
				}
			}
		}

		private String gender = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Gender
		{
			get { return gender; }
			set
			{
				if (value != gender)
				{
					MarkChanged("Gender");
					gender = value;
				}
			}
		}

		private String name = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Name
		{
			get { return name; }
			set
			{
				if (value != name)
				{
					MarkChanged("Name");
					name = value;
				}
			}
		}

		private String code = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Code
		{
			get { return code; }
			set
			{
				if (value != code)
				{
					MarkChanged("Code");
					code = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public StaffInfo()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override StaffInfo DataSelect(int id)
		{
			return Services.DALService.StaffInfoService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.StaffInfoService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.StaffInfoService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.StaffInfoService.Delete(this);
		}

		#endregion Base overrides
	}
}
